#!/usr/bin/python
# author dennis
# 2022年06月15日
import multiprocessing


def w1(name, age):
    print("{}今年{}".format(name, age))


def w2():
    print("我是w2")

if __name__ == '__main__':
    w1_process = multiprocessing.Process(target=w1,args=("xiangda",20))
    w1_process.start()
    w1_process.join()

    w2_process = multiprocessing.Process(target=w2)
    w2_process.start()
    w2_process.join()

    print("我是主进程")